//
//  KLpicLabel.m
//  Hema
//
//  Created by Jeamine on 16/1/28.
//  Copyright © 2016年 Hemaapp. All rights reserved.
//

#import "KLpicLabel.h"
#import "Masonry.h"
#import "HemaConst.h"
@implementation KLpicLabel

- (id)initWithFrame:(CGRect)frame
{
    
    self = [super initWithFrame:frame];
    if (self) {
    
        //蓝牙状态
//        UIView *blueView = [UIView new];
//        [HemaFunction addbordertoView:blueView radius:3.f width:1 color:BB_lineColor];
//        blueView.backgroundColor = [UIColor clearColor];
//        [self addSubview:blueView];
        
        _headView = [UIImageView new];
        [self addSubview:_headView];
        _headView.image = IMAGE(@"bluetooth");
        [_headView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(@5);
            make.top.mas_equalTo(@5);
            //make.bottom.mas_equalTo(@-5);
            //make.centerY.equalTo(self);
            make.size.mas_equalTo(CGSizeMake(20, 20));

            //make.width.mas_equalTo(@24);
        }];
        _textLabel = [UILabel new];
        [self addSubview:_textLabel];
        _textLabel.textColor = BB_White_Color;
        [_textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(_headView.mas_right).offset(5);//距_headView右10
//            make.top.equalTo(self).offset(5);
            make.centerY.equalTo(self);
        }];
        _textLabel.font = FONT(16);

    }
    return self;
}
@end
